#include"shm.hpp"
#include "fifo_pipe.hpp"

int main(){
    Shm shm(PATH_NAME, PROJ_ID, USER); 

    fifo_operator fOpr(".", "fifo");
    fOpr.Open_to_write();

    char* send = (char*)shm.Get_shm_addr();
    int i = 0;
    for(char c = 'a'; c <= 'z'; c++, i += 2){
        sleep(1);
        send[i] = c;
        send[i + 1] = c;
        sleep(1);
        fOpr.Wake();
    }    
 
    fOpr.Close();
    return 0;
}